package ym.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import ym.pojo.RepairReport;

import java.util.List;

public interface RepairReportService {
    void add(RepairReport repairReport);

    void update(RepairReport repairReport);

    void delete(Integer id);

    RepairReport findById(Integer id);

    List<RepairReport> findAll();

    Page<RepairReport> search(String search, int page, int size);

    //根据用户id分页查询
    Page<RepairReport> searchByUserId(Integer userId, String search, int page, int size);
    //根据maintainerId分页查询
    Page<RepairReport> searchByMaintainerId(Integer maintainerId, String search, int page, int size);

}
